const Koa = require('koa');
const app = new Koa();
async function logger(ctx, next){    //M-logger
  //console.log(`${ctx.method} ${ctx.url}`);
  const start = new Date();
  next();
  const end = new Date();
  console.log(ctx.method,ctx.path);
  console.log(end-start);
}
module.exports = logger;

